﻿using Microsoft.AspNetCore.Mvc.Abstractions;
using Microsoft.AspNetCore.Mvc.Filters;
using Volo.Abp.AspNetCore.Mvc.ExceptionHandling;

namespace Xms.Abp.AspNetCore.Mvc.ExceptionHandling;

public class XmsExceptionFilter : AbpExceptionFilter
{
    protected override bool ShouldHandleException(ExceptionContext context)
    {
        if (context.ActionDescriptor.IsControllerAction())
        {
            return true;
        }

        return base.ShouldHandleException(context);
    }
}
